--- * 属性转换
---* [0]属性的[2]%换算成[1]属性值
---@class BuffEffect11 : BaseBuffEffect
BuffEffect11 = ClientFight.CreateClass("BuffEffect11", ClientFight.BaseBuffEffect)
local t = BuffEffect11

---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local parameters = { ... }
    local values = buff.buffBean.f_BuffEffectValue
    -- 计算值
    local value = FighterAttributeManager.getFightAttr(buff.source, values[1]) * values[3] / Global.TEN_THOUSANDTH;
    value = value * buff.overlay

    buff.attributes.attributes[values[1]] = value
    local logValue = value;
    SkillRoleMgr.savePathFile( "[" .. fight.frame .. "][EFFECT]Fighter " .. buff.target.fighterId .. " Buff"
    .. buff.modelId .. " 触发属性转化，属性【" .. values[1] .. "】转化为【" .. values[2] .. "】数值：" .. logValue);
    ClientFight.BaseBuffEffect.action(self,fight, buff, parameters);
    return IBuffEffect.SUCCESS_ATTRI_HAS_CHANGE;
end

t.New()